<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.png" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />        
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/stylebkp.css"/>
                
        <!-- blueprint CSS framework --> 
        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
        <![endif]-->
 
        <title><?php echo CHtml::encode($this->pageTitle); ?></title> 
        <!--Start of Zopim Live Chat Script (NEW CODE)-->
        <script type="text/javascript">
            window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
                    d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
                        _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
                $.src='//v2.zopim.com/?1hSMksz6txro3FVR8n1wapqYWLORJdOB';z.t=+new Date;$.
                    type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
        </script>
        <!--End of Zopim Live Chat Script-->
        
        
        
        <!--End of Zopim Live Chat Script-->
        <script type="text/javascript">
            document.write('<span id="EgoPaySeal"></span>');      
            (function() {        
                var eps = document.createElement('script'); eps.type = 'text/javascript'; eps.async = true;
                eps.src = 'https://www.egopay.com/verify/seal/seal/P1JMLSDZMEY4';
                var sp = document.getElementById('EgoPaySeal'); if (sp) {sp.appendChild(eps);}        
            })();
        </script>
    </head>
    <body>
        <div class="header"> 
            <div class="header-top">
                <div class="background-plate">
                    <div class="span1">
                        <a href="#">
                            <img class="main-logo" src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.png"></img>
                        </a>
                        <a href="#">
                            <img class="websitename" src="<?php echo Yii::app()->request->baseUrl; ?>/images/viewinvesta.png"></img>
                        </a>
                    </div>
                    <div class="span2">
                        <div class="sub-span1">
                            <div class="loginscreen">
                                <?php if(Yii::app()->user->isGuest) { ?>
                                <form id="login-form" class="loginform" method="post" action="<?php echo Yii::app()->request->baseUrl; ?>/index.php/site/login">
                                    <div class="title">
                                        <span>Member Login</span>
                                    </div>
                                    <div class="login">
                                        <div style="display:none"></div>
                                        <span>Username</span>
                                        <input type="text" id="LoginForm_username" name="LoginForm[username]"></input>

                                        <span>Password</span>
                                        <input type="password" id="LoginForm_password" name="LoginForm[password]"></input>

                                        <input type="submit" name="yt0" value = "Login"></input>
                                        <a href="#">Password recovery</a>										
                                    </div>
                                </form>
                                <?php } 
                                else{ ?>
<!--                                <spa>Welcome</spa>
                                <h3><?php echo Yii::app()->user->name; ?></h3>-->
                                <?php }
                                ?>
                            </div>							
                        </div>
                        <img class="globe-img" src="<?php echo Yii::app()->request->baseUrl; ?>/images/globe.png"></img>						
                        <div class="sub-span2">
                            <ul>
                                <li><a style="color: black" href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/site/page?view=ddos" >DDOS Protected Server</a></li>
                                <li><a style="color: black" href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/site/page?view=trusted" >100% Certified</a></li>
                                <li><a style="color: black" href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/site/page?view=fastpayment" >Fast Payment</a></li>
                                <li><a style="color: black" href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/site/page?view=forexnews" >Forex Market News</a></li>
                            </ul>
                        </div>						
                    </div> 					
                </div>
            </div>
            <div class="header-bottom">  
                <div class="header-bottom-nav">
                    <div id="mainmenu" class="main-menu">
                        <?php
//                        $this->widget('zii.widgets.CMenu', array(
//                            'items' => array(
//                                array('label' => 'HOME', 'url' => array('/site/index'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'ABOUT US', 'url' => array('/site/page', 'view' => 'about'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'TESTIMONIAL', 'url' => array('/site/page', 'view' => 'testimonials'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'F.A.Q', 'url' => array('/site/page', 'view' => 'faq'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'SUPPORT', 'url' => array('/site/contact'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'TERMS', 'url' => array('/site/contact'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'REGISTRATION', 'url' => array('/member/signup/refkey/'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'SIGNIN', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'CONTACT US', 'url' => array('/site/contact'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'FEE', 'url' => array('/dashboard/admin'), 'visible' => Yii::app()->user->isGuest),
//                                array('label' => 'Signout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)
//                            ),
//                        ));
//                        ?>
                        <?php
                                        $this->widget('zii.widgets.CMenu', array(
                            'items' => array(
                                array('label' => 'Home', 'url' => array('/site/index'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'About Us', 'url' => array('/site/page', 'view' => 'about'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Testimonials', 'url' => array('/site/page', 'view' => 'testimonials'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Investment Plan', 'url' => array('/site/page', 'view' => 'investment-plan'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Bonus & Commission', 'url' => array('/site/page', 'view' => 'bonus-commission'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'FAQ', 'url' => array('/site/page', 'view' => 'faq'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Contact Us', 'url' => array('/site/contact'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Signin', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Signup', 'url' => array('/member/signup/?refkey=&type='), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Dashboard', 'url' => array('/dashboard/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Dashboard', 'url' => array('/dashboard/index'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin()),
                                //array('label' => 'Buy Position', 'url' => array('/position/index'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin() ),
                                //array('label' => 'Buy Position', 'url' => array('/memberPosition/create'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin()),
                                array('label' => 'Buy Package', 'url' => array('/memberPosition/deposit'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin() && !Yii::app()->user->havePackage()),
                                //array('label' => 'Positions', 'url' => array('/memberPosition/positions'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin()),
                                array('label' => 'Reffered Status', 'url' => array('/member/membergraph'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin()),
                                array('label' => 'Balance Status', 'url' => array('/member/balancestatus'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin()),
                                array('label' => 'Transactions', 'url' => array('/memberTransactionHistory/transactionStatus'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin()),
                                array('label' => 'Withdraw', 'url' => array('/withdraw/create'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin()),
                                //array('label' => 'Plans', 'url' => array('/plans/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Pay Processors', 'url' => array('/paymentProcessor/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Member', 'url' => array('/member/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Transactions', 'url' => array('/memberTransactionHistory/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Slot', 'url' => array('/matchingSlot/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Matching History', 'url' => array('/matchingHistory/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'News', 'url' => array('/news/admin'), 'visible' => Yii::app()->user->isAdmin()),
//                                array('label' => 'Security', 'url' => array('/securityQuestion/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Package', 'url' => array('/package/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Resources', 'url' => array('/resources/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'My Jobs', 'url' => array('/memberPosition/video'), 'visible' => !Yii::app()->user->isGuest && !Yii::app()->user->isAdmin() && Yii::app()->user->havePackage()),
//                                array('label' => 'My Jobs', 'url' => array('/memberPosition/video'), 'visible' => Yii::app()->user->isAdmin()),
                                //array('label' => 'Setting', 'url' => array('/setting/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                //array('label' => 'PP Setting', 'url' => array('/paymentProcessorsSetting/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Withdraw (' . Yii::app()->user->totalWithdrawRequest(). ')', 'url' => array('/withdraw/admin'), 'visible' => Yii::app()->user->isAdmin()),
                                array('label' => 'Password Change', 'url' => array('/site/passwordchange'), 'visible' => !Yii::app()->user->isGuest),
                                array('label' => 'Signout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest),
                            ),
                        ));
                        ?>
                    </div>                    
                </div>
            </div>
            <?php if (isset($this->breadcrumbs)): ?>
                <?php
                $this->widget('zii.widgets.CBreadcrumbs', array(
                    'links' => $this->breadcrumbs,
                ));
                ?>
            <?php endif ?>
        </div>
        <div class="content">
            <?php echo $content; ?>
        </div>
        <div class="footer">
            <div class="span1">
                <div class="link">
                    <ul class="link-list">
                        <li><?php echo CHtml::link('Home', array('site/index')); ?></li>
                        <li><?php echo CHtml::link('About US', array('site/page/view/about')); ?></li>                        
                    </ul>
                    <ul class="link-list">
                        <li><?php echo CHtml::link('Testimonial', array('site/page?view=testimonials')); ?></li>                        
                        <li><?php echo CHtml::link('Terms', array('site/page/view/terms-conditions')); ?></li>
                    </ul>
                    <ul class="link-list">
                        <li><?php echo CHtml::link('Registration', array('/member/signup/refkey/')); ?></li>
                        <li><?php echo CHtml::link('Contact us', array('site/contact')); ?></li>
                    </ul>
                    <ul class="link-list">
                        <li><?php echo CHtml::link('Exchanger', array('site/page?view=exchanger')); ?></li>
                        <li><?php echo CHtml::link('F.A.Q', array('site/page/view/faq')); ?></li>
                    </ul>
                </div>
                <div class="copyright">
                    <span>Copyright 2013 VI & Parliamentary Affairs ,NASDAQ, Company Number 2970219</span>
                </div>
            </div>
<!--            <div class="span2">
                <a href="#">
                    <img class="gurantee" src="<?php echo Yii::app()->request->baseUrl; ?>/images/gurantee.png"></img>
                </a>
            </div>            -->
        </div>
        <!-- google analytics -->
        <script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
            
            ga('create', 'UA-45696773-1', 'viewinvesta.com');
            ga('send', 'pageview');
            
        </script>
        
        <!-- alexa api -->
        <!-- Start Alexa Certify Javascript -->
        <script type="text/javascript">
            _atrk_opts = { atrk_acct:"xylBi1a8Dy00ie", domain:"viewinvesta.com",dynamic: true};
            (function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })();
        </script>
        <noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=xylBi1a8Dy00ie" style="display:none" height="1" width="1" alt="" /></noscript>
        <!-- End Alexa Certify Javascript -->
        
    </body>
</html>
